<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	template="/pages/templates/template.xhtml">
	<ui:define name="metadata">
		<f:metadata>
			<f:viewParam name="id" value="#{AreaInteresseBean.id}" />
			<f:event type="preRenderView" listener="#{AreaInteresseBean.init}" />
		</f:metadata>
	</ui:define>
	<ui:define name="content">
		<h:form id="formArea">
			<div>
				<div class="div-titulo-tela">
					<p:outputLabel styleClass="titulo-tela">Área de Interesse</p:outputLabel>
					<br /> <br />
					<p:separator></p:separator>
					<div class="div-titulo-botoes">
						<p:commandButton id="btnNovo" value="Novo"
							actionListener="#{AreaInteresseBean.doNovo}" />
						<p:commandButton value="Lista"
							actionListener="#{AreaInteresseBean.doListar}" />
						<p:commandButton id="btnSalvar" value="Salvar" ajax="true"
							update="formArea" actionListener="#{AreaInteresseBean.doSalvar}" />
					</div>
				</div>
				<div>
					<div class="div-corpo-tela">
						<div class="div-mensagem">
							<p:messages id="messages" autoUpdate="true" closable="true" />
						</div>

						<h:panelGrid columns="2" cellpadding="10" styleClass="tabGeral">
							<p:outputLabel styleClass="label">Nome: </p:outputLabel>
							<p:inputText styleClass="campo" id="txtNome" maxlength="60"
								value="#{AreaInteresseBean.area.nome}"></p:inputText>
							<p:outputLabel styleClass="label">Código do Grupo: </p:outputLabel>
							<p:inputText styleClass="campo" id="txtCodGrupo" maxlength="10"
								value="#{AreaInteresseBean.area.codGrupo}"></p:inputText>
						</h:panelGrid>

					</div>
				</div>
			</div>
		</h:form>
	</ui:define>
</ui:composition>

